/**
 * @FileName Invoker.java
 * @Package com.designMode.command
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-6 上午11:52:19
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.command;

/**
 * @author 顾博君
 * @ClassName Invoker
 * @Date 2016-1-6 上午11:52:19
 * @Function 调用者类
 */
public class Invoker {
    private Command command;

    /**
     * 设置命令
     *
     * @param _command 命令
     */
    public void setCommand(Command _command) {
        this.command = _command;
    }

    /**
     * 执行命令动作
     */
    public void action() {
        this.command.execute();
    }
}
